<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<script type="text/javascript">
	$(function() {
		$('#newFolderForm').form({
			url : '${pageContext.request.contextPath}/ebook/newFolder' ,
			onSubmit : function() {
				var isValid = $(this).form('validate');
				if (!isValid) {
					//progressClose();
				}
				return isValid;
			},
			success : function(result) {
				result = $.parseJSON(result);
				if (result.success) {
					parent.$.modalDialog.handler.dialog('close');
					parent.$.modalDialog.openner_tree_2.tree('reload');//之所以能在这里调用到parent.$.modalDialog.openner_dataGrid这个对象，是因为user.jsp页面预定义好了
					
				} else {
					parent.$.messager.alert('错误', result.msg, 'error');
				}
			}
		});
	});
</script>
<div style="margin: 5px;" >
	<form id="newFolderForm" method="post" enctype="multipart/form-data">
	<input type="hidden" name="filePath" value="${myFileUpload.myFilePath}">
	<input type="hidden" name="parentId" value="${myFileUpload.myId}">
	<input name="builderId" type="hidden" value="${sessionInfo.id}">
		<table cellspacing="0" cellpadding="3" border="1" style="width: 100%;height: 100%">
			<tbody>
				<tr bgcolor="#398EB7">
					<td colspan="2"><font color="#ffffff">档案</font></td>
				</tr>
				<tr style="width: 100%;height: 100%">
					<td>
						<div align="left">
							<p>
								<font face="Verdana">档案名:&nbsp;</font> <br>
							</p>
						</div>
					</td>
					<td><font face="Verdana"> <input type="text" name="name" class="easyui-validatebox" data-options="required:true"/> <br> </font></td>
				</tr>
			</tbody>
		</table>
	</form>
</div>